package com.css.fxfzaqbz.modules.assess.repository;

import com.css.fxfzaqbz.modules.assess.entity.SecondDisastersEntity;
import com.css.fxfzaqbz.modules.assess2.entity.TaskContent;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-09-15 14:14
 */
public interface SecondDisastersRepository {


    SecondDisastersEntity saveSecondDisasters(SecondDisastersEntity secondDisastersEntity);

    List<SecondDisastersEntity> getAllSecondDisasters(String id);

    SecondDisastersEntity getSecondDisastersById(String id);

    void deleteSecondDisasters(String id, Timestamp currentTimestamp, String userID);

    List<SecondDisastersEntity> getSecondDisastersByContent(String ssdContent, String ssdRelation);

    SecondDisastersEntity updateSecondDisastersById(SecondDisastersEntity secondDisastersEntity, String ssdId);

    SecondDisastersEntity updateSecondDisasters(SecondDisastersEntity secondDisastersEntity);

    List<TaskContent> getAllSecondDisasters1(String id);

    List<SecondDisastersEntity> getAllSecondDisastersTwo(String id);

    int getNumber(SecondDisastersEntity secondDisastersEntity);

    void firstSubmitSecondDisasters(String id, String userID, Timestamp currentTimestamp, String ssdDescribe);

    void firstSubmitSecondDisasters2(String id, String userID, Timestamp currentTimestamp);

    SecondDisastersEntity SecondDisastersIfRepetition(SecondDisastersEntity secondDisastersEntity);

    void addSecondDisastersDisaster(List<String> ids, String describe);

    void removeSecondDisasters(SecondDisastersEntity secondDisastersById);

    void secondSubmitSecondDisasters(List<String> ids, String mobilePhone, String userName,Timestamp currentTimestamp);

    List<SecondDisastersEntity> getSecondDisastersByIaId(String id);

    List<SecondDisastersEntity> getSecondDisastersByIaaId(String iaId);

    SecondDisastersEntity getSecondDisastersByContentAndIaId(String ssdContent, String ssdRelation);

    void deleteTJ(String ssdId, Timestamp currentTimestamp, String userIDd);

    SecondDisastersEntity check1(SecondDisastersEntity secondDisastersEntity);

    SecondDisastersEntity check2(SecondDisastersEntity secondDisastersEntity);
}
